package com.xiguaji.tiktok.v1.product.repository;

import com.xiguaji.tiktok.v1.product.model.Product;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface ProductRepository extends CrudRepository<Product,Long> {

    List<Product> findByEnableAndTypeOrderByLevel(boolean enable,String type);
}
